#include <QtGui>
#include "qjscanworddocument.h"
#include "qjscanwordview.h"

int main(int argc, char** argv)
{
    QApplication qApps(argc, argv);
    QVector<uchar> line1;
    line1.push_back(3);
    QVector<uchar> line2;
    line2.push_back(41);
    line2.push_back(1);
    QVector<uchar> line3;
    line3.push_back(1);
    line3.push_back(1);
    line3.push_back(1);
    QVector<uchar> line4;
    line4.push_back(1);
    line4.push_back(1);
    QVector<uchar> line5;
    line5.push_back(3);

    QVector<MVLine> hLines;
    hLines.push_back(line1);
    hLines.push_back(line2);
    hLines.push_back(line3);
    hLines.push_back(line4);
    hLines.push_back(line5);

    QVector<MVLine> vLines(hLines);

    QJScanwordDocument doc(hLines, vLines, QSize(5,5));

    QJScanwordView view(doc);
    view.show();

//    lbl.setWindowTitle(QString("Japanese Dream"));
    return qApps.exec();
}
